<?php

namespace app\common\model;

use think\Db;

class HouseInfo extends MongoDbModel
{
    //
    protected $table = 'houseInfo';

    protected function getLandlordAttr($value, $data)
    {

        $id = $value['$id'];
        return $this->table($value['$ref'])->where('id', $id)->find();
    }
}
